package com.yyds.mapper;


import com.yyds.pojo.PreventRegion;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PreventRegionMapper {
    //查全部地区
    List<PreventRegion> findPreventRegionMapper(PreventRegion preventRegion);
    //添加地区
    Integer insertPreventRegionMapper(PreventRegion preventRegion);
    //删除
    @Delete("delete from prevent_region where region_id = #{region_id}")
    Integer deletePreventRegionServiceByIdMapper(Integer region_id);
    //修改
    Integer updatePreventRegionServiceByIdMapper(@Param("preventRegion") PreventRegion preventRegion);
    //删除部分
    Integer deletesPreventRegion(List<Integer> list);
}
